package MyQueue;

public class Test {
    public static void main(String[] args) throws EmptyQueueException{
        MyQueue myQueue = new MyQueue();

        myQueue.offer(1);
        myQueue.offer(2);
        myQueue.offer(3);

//        try {
//            System.out.println(myQueue.poll());
//            System.out.println(myQueue.poll());
//            System.out.println(myQueue.poll());
//            System.out.println(myQueue.poll());
//        } catch (EmptyQueueException e) {
//            e.printStackTrace();
//        }

        System.out.println(myQueue.peek());

        System.out.println(myQueue.size());
    }
}
